<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<title>信息无限分类管理</title>
	<meta charset = 'utf8'>
</head>
<body>
	<!DOCTYPE html>
 <html>
 <head>
 	<title>信息无限分类管理</title>
 	<meta charset = "utf8">
 </head>
 <body>
 	<center>
 		<h3>信息无限分类管理</h3>
 		<a href="<?php echo U('Home/Index/index' );?>">查看分类</a>&nbsp;&nbsp;

 		<a href="<?php echo U('Home/Add/add', array( 'id' => 15 , 'name' => '根类' , 'pid' => 0 , 'path' => '0,'));?>">添加分类</a>&nbsp;&nbsp;
 		<hr />
 	</center>
 </body>
 </html> 
	<center>
		<table border="1" width="500px">
			<tr bgcolor="#cccccc">
				<td>id</td><td>类名</td><td>父id</td><td>路径</td><td>操作</td>
			</tr>
			<?php if(is_array($rows)): foreach($rows as $key=>$row): ?><tr>
					<td><?php echo ($row["id"]); ?></td>
					<td><?php echo ($row["name"]); ?></td>
					<td><?php echo ($row["pid"]); ?></td>
					<td><?php echo ($row["path"]); ?></td>
					<td> 
						<a href="<?php echo U('Home/Add/add' , $row) ;?>">添加子类</a>&nbsp;&nbsp;
						<a href="<?php echo U('Home/Del/delDo' , $row) ;?>">删除</a>
					</td>
				</tr><?php endforeach; endif; ?>
		</table>
		<table>
			<tr>
				<td>
					<a href="<?php echo U('Home/Index/index2' , array( 'pid' => 0 , 'id' => -1 ) );?>">分层查看</a>
				</td>
			</tr>
		</table>
	</center>

</body>
</html>